package com.example.home_app.base.Onenet_online

import com.example.home_app.http.base.Onenet_online.Data

/**
 * Created by dell on 2021/8/10.
 */
class Online_json {
    private var errno = 0
    private var data: Data? = null
    private var error: String? = null
    fun setErrno(errno: Int) {
        this.errno = errno
    }

    fun getErrno(): Int {
        return errno
    }

    fun setData(data: Data?) {
        this.data = data
    }

    fun getData(): Data? {
        return data
    }

    fun setError(error: String?) {
        this.error = error
    }

    fun getError(): String? {
        return error
    }

    override fun toString(): String {
        return "Online_json{" +
                "errno=" + errno +
                ", data=" + data +
                ", error='" + error + '\'' +
                '}'
    }
}